<template>
  <div class="lineList">
      <div class="lineListNavBar">
          <van-nav-bar right-text="添加" @click-right="goaddlist" title="路线列表">
          </van-nav-bar>
      </div>
      <div class="lineListInfo">
      <div class="lineListfor" v-for="(lineList,line) in lineListitem" :key="line">
       <div class="lineListHand">
        <div class="lineListDepart">
          <p class="lineListDeparttitle">始发地</p>
          <p class="lineListDepartsite">{{lineList.depart}}</p>
          <p class="lineListDepartdetail">{{lineList.departregion}}</p>
        </div>
        <div class="carriage">
            <p class="carriageify">空运</p>
            <img src="../../assets/images/go.png">
            <p class="stockpile">需冷藏</p>
        </div>
        <div class="lineListDestination">
            <p  class="Destinationtitle">目的地</p>
            <p class="Destinationsite">{{lineList.destination}}</p>
            <p class="Destinationdetail">{{lineList.destinationregion}}</p>
        </div>
        </div>
        <div class="lineListBnt">
            <span class="chargingTitle">案件计费:</span><span class="charging">{{lineList.billing}}</span>
            <van-button color="#00C657" class="sub">点击进入</van-button>
        </div>
      </div>
    </div>
</div>
</template>

<script>
export default {
    name: "lineList",
    data(){
        return{
            lineListitem:[
                {
                "depart":"昆明市",
                "destination":"上海市",
                "departregion":"官渡区",
                "destinationregion":"成边区",
                "billing":"￥28元/件",
                },
                {"depart":"曲靖市",
                "destination":"重庆市",
                "departregion":"官渡区",
                "destinationregion":"成边区",
                "billing":"￥28元/件",
                },
            ],
        }
    },
    methods:{
        goaddlist(){
            this.$router.push({path:'/addLine'})
        }
    }
}
</script>

<style scoped>
.lineList{
    margin-top: 11px;
}
.lineListfor{
    margin-top: 11px;
}
.lineListHand{
    display: flex;
}
.carriage img{
    width: 76px;
    height: 5px;
    vertical-align: middle;
    margin-left: 37px;
}
.lineListDeparttitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-top: 15px;
    margin-left:67px;
}
.lineListDepartsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-left: 56px;
    margin-top: 12px;
}
.lineListDepartdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left:67px;
}
.carriageify{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(0,198,87,1);
    margin-left: 67px;
    margin-top: 5px;
}
.stockpile{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(255,98,0,1);
    margin-left: 60px;
}
.Destinationtitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
    margin-top: 15px;
}
.Destinationsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-top: 12px;
    margin-left: 30px;
}
.Destinationdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
}
.indetail{
    text-align: center;
    margin-top: 18px;
}
.infotitle{
    background:rgba(0,198,87,1);
    border-radius:50%;
    color: #fff;
    padding: 3px;

}
.info{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(51,51,51,1);
}
.message{
    display: flex;
    text-align: center;
    margin-top: 25px;
}
.messagetitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(169,174,192,1);
    word-wrap: break-word;
    flex: 0.5;
}
.messageconten{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(255,98,0,1);
    word-wrap: break-word;
    word-break: normal;
    flex: 0.5;
}
.takesodd{
    margin-top: 20px;
    margin-left: 35px;
}
.oddnum{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1)
}
.chargingTitle{
    margin-left: 50px;
    font-size:14px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(51,51,51,1);
    line-height:20px;
    }
.charging{
    font-size:14px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(255,98,0,1);
    line-height:20px;
}
.takesBnt{
    text-align: center;
}
.sub{
    width:90px;
    height:33px;
    margin: 16px 50px;
}
</style>